package com.finna.user.config;

import io.swagger.v3.oas.models.OpenAPI;
import io.swagger.v3.oas.models.info.Contact;
import io.swagger.v3.oas.models.info.Info;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OpenApiConfig {

    @Bean
    public OpenAPI userOpenAPI() {
        return new OpenAPI()
                .info(new Info()
                        .title("Finna 用户服务 API")
                        .description("Finna 项目用户服务接口文档")
                        .version("1.0")
                        .contact(new Contact()
                                .name("Finna Team")
                                .url("https://github.com/finna")
                                .email("contact@finna.com")));
    }
}